package com.bootdo.jiashan.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.jiashan.dao.NormOptionDao;
import com.bootdo.jiashan.domain.NormOptionDO;
import com.bootdo.jiashan.service.NormOptionService;



@Service
public class NormOptionServiceImpl implements NormOptionService {
	@Autowired
	private NormOptionDao normOptionDao;
	
	@Override
	public NormOptionDO get(Integer id){
		return normOptionDao.get(id);
	}
	
	@Override
	public List<NormOptionDO> list(Map<String, Object> map){
		return normOptionDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return normOptionDao.count(map);
	}
	
	@Override
	public int save(NormOptionDO normOption){
		normOption.setCtime(System.currentTimeMillis());
		normOption.setUtime(0L);
		return normOptionDao.save(normOption);
	}
	
	@Override
	public int update(NormOptionDO normOption){
		return normOptionDao.update(normOption);
	}
	
	@Override
	public int remove(Integer id){
		return normOptionDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return normOptionDao.batchRemove(ids);
	}
	
}
